<template>
  <main class="h100">
    <LogChart v-if="chartData" ref="logChartRef" :data="chartData"></LogChart>
  </main>
</template>

<script>
import LogChart from '../project_data/components/log_chart.vue'
export default {
  data() { 
    return {
      chartData: null
    }
  },
  components: {
    LogChart
  },
  created() {
    this.chartData = JSON.parse(window.sessionStorage.getItem('chartOfElement'))
  },
  mounted() {
    this.$refs.logChartRef.init()
  }
}
</script>

<style>
</style>